.class public Lcom/kwad/sdk/splashscreen/a/d;
.super Lcom/kwad/sdk/mvp/Presenter;

# interfaces
.implements Lcom/kwad/sdk/core/j/b;


# instance fields
.field protected a:Lcom/kwad/sdk/splashscreen/b;

.field private b:Z

.field private c:Z

.field private d:Z

.field private e:Lcom/kwad/sdk/contentalliance/detail/video/c;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/kwad/sdk/mvp/Presenter;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    iput-boolean v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->c:Z

    iput-boolean v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->d:Z

    new-instance v0, Lcom/kwad/sdk/splashscreen/a/d$1;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/splashscreen/a/d$1;-><init>(Lcom/kwad/sdk/splashscreen/a/d;)V

    iput-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->e:Lcom/kwad/sdk/contentalliance/detail/video/c;

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/splashscreen/a/d;)Z
    .locals 0

    iget-boolean p0, p0, Lcom/kwad/sdk/splashscreen/a/d;->c:Z

    return p0
.end method

.method static synthetic a(Lcom/kwad/sdk/splashscreen/a/d;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/kwad/sdk/splashscreen/a/d;->c:Z

    return p1
.end method

.method static synthetic b(Lcom/kwad/sdk/splashscreen/a/d;)V
    .locals 0

    invoke-direct {p0}, Lcom/kwad/sdk/splashscreen/a/d;->k()V

    return-void
.end method

.method static synthetic b(Lcom/kwad/sdk/splashscreen/a/d;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    return p1
.end method

.method static synthetic c(Lcom/kwad/sdk/splashscreen/a/d;)Z
    .locals 0

    iget-boolean p0, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    return p0
.end method

.method private k()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->d:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/g/b;->h(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 4

    invoke-super {p0}, Lcom/kwad/sdk/mvp/Presenter;->a()V

    invoke-virtual {p0}, Lcom/kwad/sdk/mvp/Presenter;->i()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/splashscreen/b;

    iput-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/kwad/sdk/splashscreen/a/d;->e:Lcom/kwad/sdk/contentalliance/detail/video/c;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/splashscreen/b/a;->a(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->h:Lcom/kwad/sdk/core/j/a;

    invoke-virtual {v0, p0}, Lcom/kwad/sdk/core/j/a;->a(Lcom/kwad/sdk/core/j/b;)V

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->d:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->adInfoList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->d:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->adInfoList:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kwad/sdk/core/response/model/AdInfo;

    iget-object v0, v0, Lcom/kwad/sdk/core/response/model/AdInfo;->adSplashInfo:Lcom/kwad/sdk/core/response/model/AdInfo$AdSplashInfo;

    iget v0, v0, Lcom/kwad/sdk/core/response/model/AdInfo$AdSplashInfo;->mute:I

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eq v0, v2, :cond_3

    const/4 v2, 0x3

    if-eq v0, v2, :cond_2

    :cond_1
    :goto_0
    iput-boolean v1, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->e:Lcom/kwad/sdk/core/view/AdBaseFrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/kwad/sdk/c/o;->j(Landroid/content/Context;)I

    move-result v0

    if-lez v0, :cond_1

    const/4 v1, 0x1

    goto :goto_0

    :cond_3
    iput-boolean v3, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    :cond_4
    :goto_1
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    if-eqz v0, :cond_5

    iget-boolean v1, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/splashscreen/b/a;->a(Z)V

    :cond_5
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->e:Lcom/kwad/sdk/core/view/AdBaseFrameLayout;

    const-string v1, "ksad_splash_sound"

    invoke-static {v0, v1}, Lcom/kwad/sdk/c/s;->a(Landroid/view/View;Ljava/lang/String;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iget-boolean v1, p0, Lcom/kwad/sdk/splashscreen/a/d;->b:Z

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setSelected(Z)V

    new-instance v1, Lcom/kwad/sdk/splashscreen/a/d$2;

    invoke-direct {v1, p0, v0}, Lcom/kwad/sdk/splashscreen/a/d$2;-><init>(Lcom/kwad/sdk/splashscreen/a/d;Landroid/widget/ImageView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method protected c()V
    .locals 2

    invoke-super {p0}, Lcom/kwad/sdk/mvp/Presenter;->c()V

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/kwad/sdk/splashscreen/a/d;->e:Lcom/kwad/sdk/contentalliance/detail/video/c;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/splashscreen/b/a;->b(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->h:Lcom/kwad/sdk/core/j/a;

    invoke-virtual {v0, p0}, Lcom/kwad/sdk/core/j/a;->b(Lcom/kwad/sdk/core/j/b;)V

    return-void
.end method

.method public d_()V
    .locals 2

    iget-boolean v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->d:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->d:Z

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->d:Lcom/kwad/sdk/core/response/model/AdTemplate;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/g/b;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;Lorg/json/JSONObject;)V

    :cond_0
    return-void
.end method

.method public e_()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/splashscreen/a/d;->a:Lcom/kwad/sdk/splashscreen/b;

    iget-object v0, v0, Lcom/kwad/sdk/splashscreen/b;->f:Lcom/kwad/sdk/splashscreen/b/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/kwad/sdk/splashscreen/b/a;->g()V

    :cond_0
    return-void
.end method
